package com.example.blew.demo.uitl;

import cn.hutool.core.date.DateUtil;
import org.springframework.stereotype.Component;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author chaodong.zeng@pcitc.com
 * @since 2022/10/11
 */
@Component
public class DataAddFactory {



    public DataAdd getDataAdd() {
        // 随机名字
        DataAdd dataAdd = new DataAdd();
        dataAdd.setFristName(RandomName.randomName(true, 0));
        dataAdd.setLastName(RandomName.randomName(true, 0));
        // 随机号码
        dataAdd.setPhone(RandomName.getRandomNumber());
        // 随机邮箱
        dataAdd.setEmail(RandomName.getRanmodEmail());
        // 随机时间
        dataAdd.setBrithday(DateUtil.parse(RandomName.getRandomDate()));
        dataAdd.setInstallDate(DateUtil.parse(RandomName.getRandomDate()));
        return dataAdd;
    }

}